package com.fr.report.web;

import com.fr.base.xml.XMLPrintWriter;
import com.fr.base.xml.XMLableReader;

public class WebPage extends WebContent
{
  private boolean pageView = false;
  private boolean isShowAsImage = false;

  public boolean isPageView()
  {
    return this.pageView;
  }

  public void setPageView(boolean paramBoolean)
  {
    this.pageView = paramBoolean;
  }

  public boolean isShowAsImage()
  {
    return this.isShowAsImage;
  }

  public void setShowAsImage(boolean paramBoolean)
  {
    this.isShowAsImage = paramBoolean;
  }

  public void readXML(XMLableReader paramXMLableReader)
  {
    super.readXML(paramXMLableReader);
    if ((paramXMLableReader.isChildNode()) && (paramXMLableReader.getTagName().equals("WebPage")))
    {
      String str;
      if ((str = paramXMLableReader.getAttr("isPage")) != null)
        setPageView(new Boolean(str).booleanValue());
      if ((str = paramXMLableReader.getAttr("isShowAsImage")) != null)
        setShowAsImage(new Boolean(str).booleanValue());
    }
  }

  public void writeXML(XMLPrintWriter paramXMLPrintWriter)
  {
    super.writeXML(paramXMLPrintWriter);
    paramXMLPrintWriter.startTAG("WebPage").attr("isPage", this.pageView).attr("isShowAsImage", this.isShowAsImage).end();
  }
}